<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="Path,com.janisRadins.asDraw.Path,COLLECTION_CHANGED,DATA_CHANGED,ERROR_CNF,ERROR_OOR,curveList,curveCount,curveIndex,hasNext,hasPrev,length,x,y,changeCurveIndex,clone,contains,curveTo,getAngleAtPoint,getCurveAt,getCurveData,getCurveSegment,getNext,getPointOnCurve,getPrev,lineTo,removeCurve,removeCurveAt,resetToEnd,resetToStart,setCurveAt" name="keywords">
<title>com.janisRadins.asDraw.Path</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'Path - API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?com/janisRadins/asDraw/Path.html&amp;com/janisRadins/asDraw/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;Path</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Path"); titleBar_setSubNav(true,true,false,false,true,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">com.janisRadins.asDraw</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Path</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">Path <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Implements</td><td><a href="ICurve.html">ICurve</a>, <a href="ICurveCollection.html">ICurveCollection</a></td>
</tr>
</table>
<p></p>
  Class which represents collection of curves that form continuous path
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#curveCount">curveCount</a> : uint<div class="summaryTableDescription">[read-only]
   Number of curves in ICurveCollection instance
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#curveIndex">curveIndex</a> : uint<div class="summaryTableDescription">[read-only]
   Current index of iterator
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#hasNext">hasNext</a> : Boolean<div class="summaryTableDescription">[read-only]
   Method that returns flag whether theres more curves to fetch beyond <code>curveIndex</code>
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#hasPrev">hasPrev</a> : Boolean<div class="summaryTableDescription">[read-only]
   Method that returns flag whether theres more curves to fetch before <code>curveIndex</code>
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#y">y</a> : Number<div class="summaryTableDescription">
   Path starting point Y coordinate
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#length">length</a> : Number<div class="summaryTableDescription">[read-only]
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#x">x</a> : Number<div class="summaryTableDescription">
   Path starting point X coordinate
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
</table>
</div>
<a name="protectedPropertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Properties</div>
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#curveList">curveList</a> : Vector = null<div class="summaryTableDescription">
   Inner variable which contains list of all curves in current collection
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#Path()">Path</a>(curves:Vector = null)</div>
<div class="summaryTableDescription">
   Constructor
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#changeCurveIndex()">changeCurveIndex</a>(oldIndex:<a href="">int</a>, newIndex:<a href="">int</a>):void</div>
<div class="summaryTableDescription">
   Method that change Curve position in collection
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#clone()">clone</a>():<a href="../asDraw/Path.html">Path</a>
</div>
<div class="summaryTableDescription">
   Method that creates exact clone of current Path
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#contains()">contains</a>(curve:<a href="Curve.html">Curve</a>):Boolean</div>
<div class="summaryTableDescription">
   Method that returns flag on wether Curve is contained by collection
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#curveTo()">curveTo</a>(controlX:Number, controlY:Number, anchorX:Number = 0, anchorY:Number = 0):uint</div>
<div class="summaryTableDescription">
   Method that adds new curve to Path
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getAngleAtPoint()">getAngleAtPoint</a>(position:<a href="">Number</a>):Number</div>
<div class="summaryTableDescription">
   Method that returns angle in radians on requested curve position
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getCurveAt()">getCurveAt</a>(index:<a href="">int</a>):<a href="ICurve.html">ICurve</a>
</div>
<div class="summaryTableDescription">
   Method which returns curve instance at some index
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getCurveData()">getCurveData</a>(curve:<a href="ICurve.html">ICurve</a>):<a href="vo/CurveData.html">CurveData</a>
</div>
<div class="summaryTableDescription">
   Method that returns data about ICurve position inside ICurveCollection
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getCurveSegment()">getCurveSegment</a>(start:Number, end:Number):GraphicsPath</div>
<div class="summaryTableDescription">
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getNext()">getNext</a>():<a href="ICurve.html">ICurve</a>
</div>
<div class="summaryTableDescription">
   Method that returns next ICurve instance
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getPointOnCurve()">getPointOnCurve</a>(position:Number):Point</div>
<div class="summaryTableDescription">
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getPrev()">getPrev</a>():<a href="ICurve.html">ICurve</a>
</div>
<div class="summaryTableDescription">
   Method that returns previouse ICurve instance
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#lineTo()">lineTo</a>(x:Number = 0, y:Number = 0):uint</div>
<div class="summaryTableDescription">
   Method that adds stright line to Path
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#removeCurve()">removeCurve</a>(curve:<a href="Curve.html">Curve</a>):<a href="ICurve.html">ICurve</a>
</div>
<div class="summaryTableDescription">
   Method that removes all specific Curve instances from collection
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#removeCurveAt()">removeCurveAt</a>(index:<a href="">int</a>):<a href="ICurve.html">ICurve</a>
</div>
<div class="summaryTableDescription">
   Method that removes Curve from collection by index
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#resetToEnd()">resetToEnd</a>():void</div>
<div class="summaryTableDescription">
   Method that sets curveIndex to end of curve collection
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#resetToStart()">resetToStart</a>():void</div>
<div class="summaryTableDescription">
   Method that resets curveIndex to begining of curve collection
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#setCurveAt()">setCurveAt</a>(curve:<a href="Curve.html">Curve</a>, index:<a href="">int</a>):void</div>
<div class="summaryTableDescription">
   Method that adds Curve to collection at specific index
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
</table>
</div>
<a name="eventSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Events</div>
<table id="summaryTableEvent" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Event</th><th>Summary</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:collectionChanged">collectionChanged</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Event dispathed as any change in collection of curves - new curves added/removed, curve index change has taken place.<br>
  </td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:dataChanged">dataChanged</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Event dispathed as any of sub curve properties have been changed.<br>
  </td><td class="summaryTableOwnerCol">Path</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#COLLECTION_CHANGED">COLLECTION_CHANGED</a> : String = "collectionChanged"<div class="summaryTableDescription">
   collectionChanged event constant
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#DATA_CHANGED">DATA_CHANGED</a> : String = "dataChanged"<div class="summaryTableDescription">
   dataChanged event constant
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#ERROR_CNF">ERROR_CNF</a> : uint = 2<div class="summaryTableDescription">
   Curve not found error ID
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#ERROR_OOR">ERROR_OOR</a> : uint = 1<div class="summaryTableDescription">
   Out of range error ID
   </div>
</td><td class="summaryTableOwnerCol">Path</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="curveCount"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">curveCount</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>curveCount:uint</code>&nbsp;&nbsp;[read-only]<p>
   Number of curves in ICurveCollection instance
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get curveCount():uint</code>
<br>
</div>
<a name="curveIndex"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">curveIndex</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>curveIndex:uint</code>&nbsp;&nbsp;[read-only]<p>
   Current index of iterator
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get curveIndex():uint</code>
<br>
</div>
<a name="curveList"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">curveList</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var curveList:Vector = null</code><p>
   Inner variable which contains list of all curves in current collection
   </p></div>
<a name="hasNext"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hasNext</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>hasNext:Boolean</code>&nbsp;&nbsp;[read-only]<p>
   Method that returns flag whether theres more curves to fetch beyond <code>curveIndex</code>
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get hasNext():Boolean</code>
<br>
</div>
<a name="hasPrev"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">hasPrev</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>hasPrev:Boolean</code>&nbsp;&nbsp;[read-only]<p>
   Method that returns flag whether theres more curves to fetch before <code>curveIndex</code>
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get hasPrev():Boolean</code>
<br>
</div>
<a name="y"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">y</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>y:Number</code>&nbsp;&nbsp;[read-write]<p>
   Path starting point Y coordinate
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get y():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set y(value:Number):void</code>
<br>
</div>
<a name="length"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">length</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>length:Number</code>&nbsp;&nbsp;[read-only]<p>
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get length():Number</code>
<br>
</div>
<a name="x"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">x</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>x:Number</code>&nbsp;&nbsp;[read-write]<p>
   Path starting point X coordinate
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get x():Number</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set x(value:Number):void</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="Path()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">Path</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function Path(curves:Vector = null)</code><p>
   Constructor
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">curves</span>:Vector</code> (default = <code>null</code>)<code></code> &mdash; Vector with curves to be used in this Path
   </td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="changeCurveIndex()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">changeCurveIndex</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function changeCurveIndex(oldIndex:<a href="">int</a>, newIndex:<a href="">int</a>):void</code><p>
   Method that change Curve position in collection
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">oldIndex</span>:<a href="">int</a></code> &mdash; Curve instance which exists in collection
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">newIndex</span>:<a href="">int</a></code> &mdash; Index of curve which should be moved
   </td>
</tr>
</table>
</div>
<a name="clone()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">clone</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function clone():<a href="../asDraw/Path.html">Path</a></code><p>
   Method that creates exact clone of current Path
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../asDraw/Path.html">Path</a></code> &mdash; 
                        new Path instance
   
                        
                     </td>
</tr>
</table>
</div>
<a name="contains()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">contains</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function contains(curve:<a href="Curve.html">Curve</a>):Boolean</code><p>
   Method that returns flag on wether Curve is contained by collection
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">curve</span>:<a href="Curve.html">Curve</a></code> &mdash; Curve that should be checked
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; Boolean flag, true if Curve is inside collection or false if not
   </td>
</tr>
</table>
</div>
<a name="curveTo()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">curveTo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function curveTo(controlX:Number, controlY:Number, anchorX:Number = 0, anchorY:Number = 0):uint</code><p>
   Method that adds new curve to Path
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">controlX</span>:Number</code> &mdash; Controll point X value relative to Path last point
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">controlY</span>:Number</code> &mdash; Controll point Y value relative to Path last point
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">anchorX</span>:Number</code> (default = <code>0</code>)<code></code> &mdash;  Anchor point X value relative to Path last point
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">anchorY</span>:Number</code> (default = <code>0</code>)<code></code> &mdash;  Anchor point Y value relative to Path last point
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>uint</code> &mdash; New length of curve collection in this Path
   </td>
</tr>
</table>
</div>
<a name="getAngleAtPoint()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getAngleAtPoint</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getAngleAtPoint(position:<a href="">Number</a>):Number</code><p>
   Method that returns angle in radians on requested curve position
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">position</span>:<a href="">Number</a></code> &mdash; value in range 0 - curve length
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Number</code> &mdash; Value of curve angle in radians
   </td>
</tr>
</table>
</div>
<a name="getCurveAt()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getCurveAt</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getCurveAt(index:<a href="">int</a>):<a href="ICurve.html">ICurve</a></code><p>
   Method which returns curve instance at some index
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">index</span>:<a href="">int</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="ICurve.html">ICurve</a></code> &mdash; 
                         ICurve
   
                        
                     </td>
</tr>
</table>
</div>
<a name="getCurveData()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getCurveData</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getCurveData(curve:<a href="ICurve.html">ICurve</a>):<a href="vo/CurveData.html">CurveData</a></code><p>
   Method that returns data about ICurve position inside ICurveCollection
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">curve</span>:<a href="ICurve.html">ICurve</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="vo/CurveData.html">CurveData</a></code> &mdash; 
                        CurveData
   
                        
                     </td>
</tr>
</table>
</div>
<a name="getCurveSegment()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getCurveSegment</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getCurveSegment(start:Number, end:Number):GraphicsPath</code><p>
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">start</span>:Number</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">end</span>:Number</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>GraphicsPath</code></td>
</tr>
</table>
</div>
<a name="getNext()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getNext</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getNext():<a href="ICurve.html">ICurve</a></code><p>
   Method that returns next ICurve instance
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="ICurve.html">ICurve</a></code> &mdash; 
                        ICurve
   
                        
                     </td>
</tr>
</table>
</div>
<a name="getPointOnCurve()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getPointOnCurve</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getPointOnCurve(position:Number):Point</code><p>
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">position</span>:Number</code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Point</code></td>
</tr>
</table>
</div>
<a name="getPrev()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getPrev</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getPrev():<a href="ICurve.html">ICurve</a></code><p>
   Method that returns previouse ICurve instance
   </p><p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="ICurve.html">ICurve</a></code> &mdash; 
                        ICurve
   
                        
                     </td>
</tr>
</table>
</div>
<a name="lineTo()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">lineTo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function lineTo(x:Number = 0, y:Number = 0):uint</code><p>
   Method that adds stright line to Path
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">x</span>:Number</code> (default = <code>0</code>)<code></code> &mdash; X coordinate of line ending relative to Path last point
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">y</span>:Number</code> (default = <code>0</code>)<code></code> &mdash; X coordinate of line ending relative to Path last point
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>uint</code> &mdash; New length of curve collection in this Path
   </td>
</tr>
</table>
</div>
<a name="removeCurve()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">removeCurve</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function removeCurve(curve:<a href="Curve.html">Curve</a>):<a href="ICurve.html">ICurve</a></code><p>
   Method that removes all specific Curve instances from collection
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">curve</span>:<a href="Curve.html">Curve</a></code> &mdash; Reference to Curve instance in collection that should be removed
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="ICurve.html">ICurve</a></code> &mdash; 
                        Curve that has been removed
   
                        
                     </td>
</tr>
</table>
</div>
<a name="removeCurveAt()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">removeCurveAt</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function removeCurveAt(index:<a href="">int</a>):<a href="ICurve.html">ICurve</a></code><p>
   Method that removes Curve from collection by index
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">index</span>:<a href="">int</a></code> &mdash; Value in range -curveCount to curveCount which specify at which index Curve should be added
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="ICurve.html">ICurve</a></code> &mdash; 
                        Curve that has been removed
   
                        
                     </td>
</tr>
</table>
</div>
<a name="resetToEnd()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">resetToEnd</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function resetToEnd():void</code><p>
   Method that sets curveIndex to end of curve collection
   </p></div>
<a name="resetToStart()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">resetToStart</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function resetToStart():void</code><p>
   Method that resets curveIndex to begining of curve collection
   </p></div>
<a name="setCurveAt()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">setCurveAt</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function setCurveAt(curve:<a href="Curve.html">Curve</a>, index:<a href="">int</a>):void</code><p>
   Method that adds Curve to collection at specific index
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">curve</span>:<a href="Curve.html">Curve</a></code> &mdash; Curve instance to be added
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">index</span>:<a href="">int</a></code> &mdash; Value in range -curveCount to curveCount which specify at which index Curve should be added
   </td>
</tr>
</table>
</div>
<div class="detailSectionHeader">Event detail</div>
<a name="event:collectionChanged"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">collectionChanged</td><td class="detailHeaderType">event&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href=""><code>flash.events.Event</code></a>
<br>
<span class="label">Event.type property = </span><a href="../asDraw/Path.html#COLLECTION_CHANGED"><code>com.janisRadins.asDraw.Path.COLLECTION_CHANGED</code></a>
<br><p>
  Event dispathed as any change in collection of curves - new curves added/removed, curve index change has taken place.<br>
  </p><p>
   collectionChanged event constant
   </p></div>
<a name="event:dataChanged"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">dataChanged</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href=""><code>flash.events.Event</code></a>
<br>
<span class="label">Event.type property = </span><a href="../asDraw/Path.html#DATA_CHANGED"><code>com.janisRadins.asDraw.Path.DATA_CHANGED</code></a>
<br><p>
  Event dispathed as any of sub curve properties have been changed.<br>
  </p><p>
   dataChanged event constant
   </p></div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="COLLECTION_CHANGED"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">COLLECTION_CHANGED</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public const COLLECTION_CHANGED:String = "collectionChanged"</code><p>
   collectionChanged event constant
   </p></div>
<a name="DATA_CHANGED"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">DATA_CHANGED</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public const DATA_CHANGED:String = "dataChanged"</code><p>
   dataChanged event constant
   </p></div>
<a name="ERROR_CNF"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ERROR_CNF</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public const ERROR_CNF:uint = 2</code><p>
   Curve not found error ID
   </p></div>
<a name="ERROR_OOR"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ERROR_OOR</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public const ERROR_OOR:uint = 1</code><p>
   Out of range error ID
   </p></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
